package tool;

public class neo4j {
    public static void main(String[] args) {

        //CREATE (emp:Employee{id:123,name:"Lokesh",sal:35000,deptno:10})   //�����ڵ��ǩ��ֵ


        /**
         * # ��ѯEmployee��ǩ�� id=123��name="Lokesh"�Ľڵ�
         * MATCH (p:Employee {id:123,name:"Lokesh"}) RETURN p
         *
         * ## ��ѯEmployee��ǩ��name="Lokesh"�Ľڵ㣬ʹ�ã�where���
         * MATCH (p:Employee)
         * WHERE p.name = "Lokesh"
         * RETURN p
         *
         *
         */


        /**
         * MATCH (cust:Customer),(cc:CreditCard)
         * WHERE cust.id = "1001" AND cc.id= "5001"
         * CREATE (cust)-[r:DO_SHOPPING_WITH{shopdate:"12/12/2014",price:55000}]->(cc)
         * RETURN r
         * ����֮�䴴������
         */

        //MATCH (e: Employee) DELETE e ɾ���ڵ�


        /**
         * MATCH (cc: CreditCard)-[rel]-(c:Customer)
         * DELETE cc,c,rel
         * ɾ���ڵ������
         */

        /**
         * MATCH (dc:DebitCard)
         * REMOVE dc.cvv
         * RETURN dc
         *
         * ɾ����ǩ�ͼ�ֵ
         */
    }
}
